package com.aier.user.service;

import java.util.List;
import java.util.Map;

import com.aier.user.entity.Dynamic;





public interface IUserMessageService {
    
    /**
     * 删除评论
     * @param fcid
     * @return
     */
    int deleteComment(Long fcid);
    
    /**
     * 写私信
     * @param suid
     * @param ruid
     * @param type
     * @param content
     * @param read
     * @param img
     * @return
     */
    int insertLetter(Long suid,Long ruid,Short type,String content,Short state,String img);
    
    /**
     * 清空私信
     * @param uid
     * @return
     */
    int deleteLetter(Long uid);
    
    /**
     * 获取私信列表
     * @return
     */
    Map<String,Object> searchFollowLetter(int page,int pagesize,Long uid);
    
    /**
     * 获取私信详情
     * @param page
     * @param pagesize
     * @param lid
     * @return
     */
    Map<String,Object> searchLetterDetail(int page,int pagesize,Long lid);
    
    /**
     * 根据id删除私信
     * @param uid
     * @param ldidStr
     * @return
     */
    int deleteLetterByLdid(Long uid,String ldidStr);
    
    /**
     * 发布通知
     * @param ruid
     * @param content
     * @return
     */
    int insertNotice(Long ruid,String content);
    
    /**
     * 查询通知列表
     * @param uid
     * @return
     */
    Map<String,Object> searchNoticeList(int page,int pagesize,Long uid);
    
    /**
     * 删除通知
     * @param nid
     * @return
     */
    int deleteNotice(Long nid);
    
    /**
     * 删除所有通知
     * @param nid
     * @return
     */
    int deleteAllNotice(Long uid);
    
    /**
     * 获取最新提到我的新鲜事
     * @param uid
     * @return
     */
    String searchSpecialNew(Long uid);
    
    /**
     * 获取最新的评论
     * @param uid
     * @return
     */
    String searchCommentNew(Long uid);
    
    /**
     * 获取最新的对我的新鲜事的赞
     * @param uid
     * @return
     */
    String searchPraiseNew(Long uid);
    
    /**
     * 获取最新的私信
     * @param uid
     * @return
     */
    String searchLetterNew(Long uid);
    
    /**
     * 获取最新的通知
     * @param uid
     * @return
     */
    String searchNoticeNew(Long uid);
    
    /**
     * 新增或修改用户最新动作的记录
     * @param uid
     * @param type
     * @return
     */
    int insertAction(Long uid,Short type);
    
    /**
     * 获取最新通知
     * @param uid
     * @return
     */
    List<String> insertOrSearchLatestNotice(Long uid);
    
    public List<Dynamic> searchGetDynamicPraiseNew(Long uid);
    public List<Dynamic> searchGetDynamicComment(Long uid);
    
}
